﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormVerginia
{
    public partial class frmMain : Form
    {
        MyEncodes myEncodes = new MyEncodes();
        public string PlainText;
        public string CipherText;
        public string Key;
        public frmMain()
        {
            InitializeComponent();
        }

        public void textBox1_TextChanged(object sender, EventArgs e)
        {
            myEncodes.PlainText = textBox1.Text;
        }

        public void textBox2_TextChanged(object sender, EventArgs e)
        {
            myEncodes.Key = textBox2.Text;
        }

        public void button1_Click(object sender, EventArgs e)
        {
            myEncodes.Encode();
            this.textBox3.Text = myEncodes.CipherText;
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {
            
        }
    }
}



